Component org.nuxeo.ecm.platform.convert.commandline.pdf2text
In bundle org.nuxeo.ecm.core.convert.plugins
Requirements
Resolution Order
309
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime
framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.
Contributions
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.convert.commandline.pdf2text">
<require>org.nuxeo.ecm.platform.commandline.executor.service.defaultContrib</require>
<extension target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent" point="command">
<command name="pdftotext" enabled="true">
<commandLine>pdftotext</commandLine>
<parameterString>-enc UTF-8 #{sourceFilePath} #{targetFilePath}</parameterString>
<winParameterString>-enc UTF-8 #{sourceFilePath} #{targetFilePath}</winParameterString>
<installationDirective>You need to install pdftotext.</installationDirective>
</command>
<command enabled="true" name="ps2pdf">
<commandLine>gs</commandLine>
<winCommand>gswin64c</winCommand>
<parameterString>-dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEPSFitPage -sOutputFile=#{targetFilePath}
#{sourceFilePath}</parameterString>
<testParameterString>-dNODISPLAY</testParameterString>
<installationDirective>You need to install GhostScript.</installationDirective>
</command>
</extension>
</component>